#! /bin/sh -vx
# Copyright 2017 Karl Berry <tex-live@tug.org>#
# Copyright 2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
TEXINPUTS=$srcdir/luatexdir/tests:$srcdir/tests
TEXFORMATS=.

export TEXMFCNF TEXINPUTS TEXFORMATS

./luatex -ini luaimage || exit 1

./luatex -fmt=luaimage luaimage || exit 1

exit 0

